﻿package plugin.component.view
{
    import flash.utils.*;
    import plugin.component.view.enum.*;

    public class SkinConfig extends Object
    {
        private static var _player:Dictionary;
        private static var _monster:Dictionary;
        private static var _npc:Dictionary;
        private static var _skill:Dictionary;
        private static var _loops:Dictionary;

        public function SkinConfig()
        {
            return;
        }// end function

        public static function getPlayer() : Dictionary
        {
            if (_player == null)
            {
                _player = new Dictionary();
                _player[ActionType.STAND] = [8, 200, 320, 372];
                _player[ActionType.WALK] = [8, 83, 320, 372];
                _player[ActionType.RUN] = [8, 71, 320, 372];
                _player[ActionType.ATTACK] = [8, 62, 320, 372];
                _player[ActionType.ATTACK_SPECIAL] = [8, 83, 320, 372];
                _player[ActionType.DIE] = [1, 100, 320, 372];
                _player[ActionType.FLY] = [8, 90, 320, 372];
                _player[ActionType.HURT] = [8, 143, 320, 372];
                _player[ActionType.MINING] = [8, 200, 320, 372];
                _player[ActionType.SIT_RUN] = [8, 71, 320, 372];
                _player[ActionType.SIT_STAND] = [8, 200, 320, 372];
                _player[ActionType.SIT_WALK] = [8, 83, 320, 372];
                _player[ActionType.SHOWSTAND] = [8, 200, 320, 372];
            }
            return _player;
        }// end function

        public static function getMonster() : Dictionary
        {
            if (_monster == null)
            {
                _monster = new Dictionary();
                _monster[ActionType.STAND] = [5, 200, 320, 372];
                _monster[ActionType.WALK] = [5, 83, 320, 372];
                _monster[ActionType.RUN] = [5, 71, 320, 372];
                _monster[ActionType.ATTACK] = [5, 62, 320, 372];
                _monster[ActionType.ATTACK_SPECIAL] = [5, 83, 320, 372];
                _monster[ActionType.DIE] = [1, 100, 320, 372];
                _monster[ActionType.FLY] = [5, 90, 320, 372];
                _monster[ActionType.HURT] = [5, 143, 320, 372];
            }
            return _monster;
        }// end function

    }
}
